package com.indusfo.spc.pojo;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name="sys_menu ")
@Getter
@Setter
public class Menu  implements Serializable{
    /**
     * @Fields serialVersionUID : TODO
     */
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name="menu_id",insertable=false)
    private Integer menuId;

    //菜单编码
    private String menuCode;
    //菜单名称
    private String menuName;
    //资源路径
    private String tranAdress;
    //图片地址
    private String menuArg;
    //菜单类型
    private Integer menuTypeId;
    //数据字典翻译
    private String menuTypeName;
    //上级菜单编码
    private String menuPcode;
    //令牌信息
    private String remark;
    //数据状态
    private Integer dataState;

    private String iconPath;

    //设置菜单的默认关闭,
    @Transient
    private String checked;

    @Transient
    private List<Menu> children;

}
